<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>css 继承</title>
    <style>
        body {
            background: green;
        }
    </style>
</head>
<body>
    <p>Hello world</p>
    <div style="overflow:hidden;font-size: 28px;height: 300px;background: yellow;color: pink;">
        你好
        <p style="background-color: red;height: inherit;">大唐录</p>
    </div>
    <div>1111</div>
</body>
</html>